/* ******************************** */
/* Warning! Don't modify this file! */
/* ******************************** */
#include "PikaMain.h"
#include <stdio.h>
#include <stdlib.h>

PikaObj * pikaScriptInit(){
    PikaObj * pikaMain = newRootObj("pikaMain", New_PikaMain);
    obj_run(pikaMain,
            "\n"
            "led = CH32V103.GPIO()\n"
            "led.init()\n"
            "led.setPin('PA1')\n"
            "led.setMode('out')\n"
            "led.enable()\n"
            "led.high()\n"
            "sys = CH32V103.Sys()\n"
            "\n"
            "a = 0\n"
            "while a < 10:\n"
            "    a = a + 1\n"
            "    led.high()\n"
            "    led.low()\n"
            "\n"
            "print('hello PikaScript!')\n"
            "\n"
            "\n"
            "\n");
    return pikaMain;
}

